package com.power.sifa.supervise.api;

import com.plf.common.domain.ResponseDTO;
import com.power.sifa.supervise.model.Apl_feedbackdoc;
import com.power.sifa.supervise.model.pageInfo.Apl_feedbackdocPageInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *  处理反馈材料 Feign
 */
public interface IApl_feedbackdocFeign {

    /**
     * 处理反馈材料分页列表
     */
    @PostMapping("/apl_feedbackdoc/list")
    ResponseDTO list(@RequestBody Apl_feedbackdocPageInfo apl_feedbackdocPageInfo);

    /**
    * 查看处理反馈材料
    */
    @GetMapping("/apl_feedbackdoc/view")
    ResponseDTO view(@RequestParam("id") String id);

    /**
    * 删除处理反馈材料
    */
    @PostMapping("/apl_feedbackdoc/delete")
    ResponseDTO delete(@RequestParam("id") String id);

    ///**
    // * 查看处理反馈材料 复合主键使用
    // */
    //@PostMapping("/apl_feedbackdoc/viewByPK")
    //ResponseDTO viewByPK(@RequestBody Apl_feedbackdoc.Apl_feedbackdocPK pk);

    /**
     * 修改或保存处理反馈材料
     */
    @PostMapping("/apl_feedbackdoc/save")
    ResponseDTO save(@RequestBody Apl_feedbackdoc apl_feedbackdoc);

    ///**
    // * 删除处理反馈材料 复合主键使用
    // */
    //@PostMapping("/apl_feedbackdoc/deleteByPK")
    //ResponseDTO deleteByPK(@RequestBody Apl_feedbackdoc.Apl_feedbackdocPK pk);
    
    /**
     * 批量删除处理反馈材料
     */
    @PostMapping("/apl_feedbackdoc/batchDel")
    ResponseDTO batchDel(@RequestParam("ids") String ids);
    
     /**
     * 导出excel
     */
    @PostMapping("/apl_feedbackdoc/output")
    void output(HttpServletResponse response, @RequestBody Apl_feedbackdocPageInfo apl_feedbackdocPageInfo);
        
     /**
     * 导出excel模板
     */
    @PostMapping("/apl_feedbackdoc/exportExcelTemplate")
    void exportExcelTemplate(HttpServletResponse response);
    
     /**
     *	导入excel
     */
    @PostMapping("/apl_feedbackdoc/importExcel")
    ResponseDTO importExcel(@RequestBody MultipartFile file) throws IOException;

    /***
     * 按照applyid查询对应的处理反馈材料
     */
    @PostMapping("/apl_feedbackdoc/queryFeedBackDocListByApplyid")
    ResponseDTO queryFeedBackDocList(@RequestParam("applyid") String applyid);

}
